<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>购物车</title>
    <link rel="stylesheet" href="/lib/mui/css/mui.css">
    <link rel="stylesheet" href="/lib/fontawesome/css/font-awesome.css">
    <link rel="stylesheet" href="/css/common.css">
    <link rel="stylesheet" href="/css/cart.css">
</head>

<body id="pyg_body">
    <!-- 头部 -->
    <header>
        <button type="button" id="del-btn">删除</button>
        <h2 class="H-title">购物车</h2>
        <button type="button" id="eit-btn">编辑</button>
    </header>
    <div class="pyg_view">
        <!-- 配送地址 -->
        <div class="address">
            <div class="addr-title">配送地址</div>
            <div class="addr-content">
                <span class="fa fa-map-marker"></span>
                <div class="addr-des">
                    <div class="ad-title">默认地址</div>
                    <div class="ad-content">中国广东</div>
                </div>
            </div>
        </div>
        <!-- 订单总额 -->
        <div class="order">
            <div class="order-title">订单总额</div>
            <div class="order-content">
                <div class="ord-price">总价:￥
                    <span class="total_price">00</span>
                </div>
                <a class="ord-create">生成订单</a>
            </div>
        </div>
        <!-- 购物车 -->
        <div class="pyg_cart">
            <div class="cart-title">购物车</div>
            <div class="cart-content">
                <ul>
                  
                </ul>
            </div>
        </div>
    </div>
    <!-- 底部 -->
    <footer class="pyg_footer">
        <a href="/index.html">
            <span class="fa fa-home"></span>
            <span class="link-name">首页</span>
        </a>
        <a href="/pages/category.html">
            <span class="fa fa-list-ul"></span>
            <span class="link-list">分类</span>
        </a>
        <a href="javascript;:">
            <span class="fa fa-shopping-cart"></span>
            <span class="link-car">购物车</span>
        </a>
        <a href="/pages/me.html">
            <span class="fa fa-user"></span>
            <span class="link-self">个人中心</span>
        </a>
    </footer>
</body>

</html>
<script src="/lib/mui/js/mui.js"></script>
<script src="/lib/arttemplate/template-web.js"></script>
<script src="/lib/zepto/zepto.js"></script>
<script src="/js/common.js"></script>
<script src="/js/cart.js"></script>
<!-- 模板 -->
<script type="text/html" id="mianTpl">
   {{each data value index}}
    <li data-obj='{{value}}'>
            <!-- 复选框 -->
            <div class="goods-chk">
                 <div class="mui-input-row mui-checkbox">
                         <input name="g-che" type="checkbox">
                 </div>
            </div>
            <!-- 图片 -->
            <div class="goods-img"><img src="{{value.goods_small_logo}}" alt=""></div>
            <!-- 工具栏 -->
            <div class="goods-tool">
                <div class="goods-name">
                {{value.goods_name}}
                     </div>
                 <div class="goods-nums">
                     <div class="g-price">￥{{value.goods_price}}</div>
                     <div class="mui-numbox" data-numbox-min='1' data-numbox-max={{value.goods_number}}>
                             <!-- "-"按钮，点击可减小当前数值 -->
                             <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
                             <input class="mui-numbox-input" type="number" value="{{value.amount}}" />
                             <!-- "+"按钮，点击可增大当前数值 -->
                             <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
                           </div>
                 </div>    
            </div>
         </li>
     {{/each}}
</script>